<?php

namespace App\Http\Middleware;

use Closure;

class Verify
{
    public function handle($request, Closure $next)
    {
    	// 验证登录状态
        if (empty(session('userid'))) {
        	return redirect('admin/login');
        }

        return $next($request);
    }
}
